package com.hgyc.mom.base.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import com.hgyc.mom.base.mapper.ProductSeriesMapper;
import com.hgyc.mom.base.entity.ProductSeries;
import com.hgyc.mom.base.service.ProductSeriesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * 产品系列Service业务层处理
 *
 * @author fwj
 * @since 2025-04-28
 */
@Service
public class ProductSeriesServiceImpl extends ServiceImpl<ProductSeriesMapper, ProductSeries> implements ProductSeriesService
{

    @Override
    public String importData(List<ProductSeries> productSeriesList, boolean updateSupport) {
        return "";
    }

    @Override
    public ProductSeries getByName(String seriesName) {
        LambdaQueryWrapper<ProductSeries> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(ProductSeries::getName, seriesName);
        return getOne(wrapper, false);
    }
}
